package tgc.edu.demo.jkxt.entity;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import tgc.edu.demo.jkxt.custom.BaseEntity;



@Entity
public class Grade extends BaseEntity<Integer>{
	private Student student;
	private Course course;
	private Float grade;
	private Shijuan shijuan;
	
	
	@ManyToOne
	public Student getStudent() {
		return student;
	}
	public void setStudent(Student student) {
		this.student = student;
	}
	@ManyToOne
	public Course getCourse() {
		return course;
	}
	public void setCourse(Course course) {
		this.course = course;
	}

	public Float getGrade() {
		return grade;
	}
	public void setGrade(Float grade) {
		this.grade = grade;
	}
	@ManyToOne
	public Shijuan getShijuan() {
		return shijuan;
	}
	public void setShijuan(Shijuan shijuan) {
		this.shijuan = shijuan;
	}
	@Override
	public String toString() {
		return "Grade [student=" + student + ", course=" + course + ", grade=" + grade + ", shijuan=" + shijuan + "]";
	}
	
	
}
